Preserve run context for detached sub-runs - #122
Open
nishu-builder wants to merge 1 commit into
Open
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
run-asynctop-level dispatch with a server-ownedsub-runprimitiveparent stack + parent request, trace identity, and the complete secret storeWhy
Detached work should have the same execution context semantics as
run-thenandmap-then. Serializing delegated grants into workers both duplicates the secret model and loses secrets that the parent worker itself was not authorized to read.POST /sub-runnow routes admission back to the compute thread that owns the in-flight parent. That thread validates the prepared request, clones its server-held context, and starts the child without waiting for its result. The nonce expires with the parent job.Validation
cargo test --workspacecargo fmt --all -- --checknix buildCAOS_SALT=$(date --iso=s) result/bin/caos-cli run-tool test(44/44 passed)cargo-selfandchat-offlineretries after updating the EC2 test stackgit diff --checkPR #113 will be retargeted onto this PR and will contain only conversation secret loading and request identity changes.